package com.example.wangxinrong.adapter;


import androidx.annotation.NonNull;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.example.read.R;
import com.example.wangxinrong.bean.XiaoHuaBean;

public class XiaoHuaAdapter extends BaseQuickAdapter<XiaoHuaBean.Item, BaseViewHolder> {
    public XiaoHuaAdapter() {
        super(R.layout.item_xiaohua);
    }

    @Override
    protected void convert(@NonNull BaseViewHolder baseViewHolder, XiaoHuaBean.Item item) {
        baseViewHolder.setText(R.id.tv_text, item.getContent());
        baseViewHolder.setText(R.id.tv_time, "添加时间：" + item.getAddtime());
    }
}
